﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FormatTest
{

    public class nal_unit
    {
        public int forbidden_zero_bit;
        public int nal_ref_idc;
        public int nal_unit_type;

        public nal_unit(string bytes)
        {
            forbidden_zero_bit = Convert.ToInt32(bytes[0].ToString());
            nal_ref_idc = Convert.ToInt32(Common.TwoToTen(bytes.Substring(1, 2)));
            nal_unit_type = Convert.ToInt32(Common.TwoToTen(bytes.Substring(3, 5)));
            //RetrieveBytes();
        }



    }
}
